package org.formal.common.data;

import java.io.Serializable;

/**
 * web数据返回集
 * 2018年9月8日	
 * description 	
 * @author jiangyan
 */
public class ResultData  implements Serializable{

	/**
	 * 序列化id
	 */
	private static final long serialVersionUID = 5945193406111937331L;
	/**
	 * 状态码
	 */
	private int code;
	/**
	 * 请求成功
	 */
	private boolean success;
	/**
	 * 返回信息
	 */
	private String message;
	/**
	 * 返回数据集
	 */
	private Object obj;

	public int getCode() {
		return code;
	}

	public void setCode(CodeEnum code) {
		this.code = code.getCode();
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getObj() {
		return obj;
	}
	public void setObj(Object obj) {
		this.obj = obj;
	}

}
